package com.zeng.mapper;

import com.zeng.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zeng
 * @data 2021/08/14 13:18
 */
@Mapper
@Repository
public interface DepartmentMapper {
    //通过id查询部门
    public Department getDepartment(int id);

    //获取所有部门信息
    public List<Department> getDepartmentsInfo();
}
